package com.example.certificate.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "用户收货地址")
public class CustomerDTO {

    @ApiModelProperty(value = "收货人")
   @NotBlank(message = "用户名不能为空",groups = Customer.class)
    private String name;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空",groups = Customer.class)
    private String phone;

    @ApiModelProperty(value = "所在区域")
    @NotBlank(message = "所属区域不能为空",groups = Customer.class)
    private String area;

    @ApiModelProperty(value = "详细地址")
    @NotBlank(message = "详细地址不能为空",groups = Customer.class)
    private String detailedAddress;

    @ApiModelProperty(value = "是否使用默认地址，0不使用，1使用")
    private Integer status;

    public interface Customer{}
}
